function getAccessToken(code, suc_fun, fail_fun){
  	$.ajax({
  		url:vUrlPath+'/wechat/getOpenId?code='+code,
  		type:'post',  
  		dataType:'json', 
  		async:false, 
  		success:function(data) {
  			if(data.retcode =='0'){
  				suc_fun(data);
  			}
  		},
  		error:function() {
  			alert("网页授权失败");
  			fail_fun();
  		}
  	}); 
}